﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="OdersDetails.ascx.cs" Inherits="AdminControl_OdersDetails" %>
<p style="text-align: center">
    Danh Sách Các Đơn Đặt Hàng</p>
<p style="text-align: center">
    <asp:GridView ID="ordersdetails" runat="server" AutoGenerateColumns="False" 
        CellPadding="4" ForeColor="#333333" GridLines="None" 
        style="text-align: center">
        <RowStyle BackColor="#E3EAEB" />
        <Columns>
            <asp:TemplateField HeaderText="Tình trạng">
                <ItemTemplate>
                    <asp:Image ID="isfinish" runat="server" AlternateText="Chưa" 
                        ImageUrl="<%# Bind('isfinish') %>" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="memname" HeaderText="Tên Khách Hàng" />
            <asp:BoundField DataField="phone" HeaderText="Số Điện Thoại" />
            <asp:BoundField DataField="address" HeaderText="Địa Chỉ" />
            <asp:BoundField DataField="bookeddate" HeaderText="Ngày Đặt" />
            <asp:BoundField DataField="deliverydate" HeaderText="Ngày Giao" />
            <asp:TemplateField HeaderText="Tùy Chỉnh">
                <ItemTemplate>
                    <table class="style1">
                        <tr>
                            <td align="center">
                                <asp:ImageButton ID="delete" runat="server" AlternateText="Xóa" 
                                    CommandArgument="<%# Bind('bookid') %>" 
                                    ImageUrl="~/Images/ImagesForWeb/false.jpg" oncommand="deleteclick" />
                                Xóa</td>
                        </tr>
                        <tr>
                            <td align="center">
                                <asp:ImageButton ID="finish" runat="server" AlternateText="Đã xong" 
                                    CommandArgument="<%# Bind('bookid') %>" 
                                    ImageUrl="~/Images/ImagesForWeb/true.jpg" oncommand="finishclick" />
                                Xong</td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField>
                <ItemTemplate>
                    <asp:HyperLink ID="details" runat="server" NavigateUrl="<%# Bind('details') %>">Chi 
                    tiết</asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        <EditRowStyle BackColor="#7C6F57" />
        <AlternatingRowStyle BackColor="White" />
    </asp:GridView>








</p>
